import App from './App'
import uView from '@/uni_modules/uview-ui'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
// vuex
import store from './store'
import {
	parseTime,
	throttle
} from "./utils/ruoyi";
Vue.prototype.$store = store
App.mpType = 'app'

Vue.use(uView)
Vue.prototype.parseTime = parseTime
Vue.prototype.throttle = throttle
const app = new Vue({
	store,
	...App
})
// 引入请求封装
require('./utils/request/index')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif